<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改提报人员信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-healthuserinfo-edit" th:object="${healthUserInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">用户手机号：</label>
                <div class="col-sm-8">
                    <input name="userMobile" th:field="*{userMobile}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">用户名：</label>
                <div class="col-sm-8">
                    <input name="userName" th:field="*{userName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">所属公司：</label>
                <div class="col-sm-8">
                    <input name="companyName" th:field="*{companyName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">所属部门：</label>
                <div class="col-sm-8">
                    <input name="departName" th:field="*{departName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">所属班组：</label>
                <div class="col-sm-8">
                    <input name="teamName" th:field="*{teamName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否离开公司驻地：</label>
                <div class="col-sm-8">
                    <input name="comResidentFlag" th:field="*{comResidentFlag}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">目的地：</label>
                <div class="col-sm-8">
                    <input name="destination" th:field="*{destination}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">离开驻地时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="departureTime" th:value="${#dates.format(healthUserInfo.departureTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">离开驻地方式：</label>
                <div class="col-sm-8">
                    <input name="departureMode" th:field="*{departureMode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">离开驻地车次航班：</label>
                <div class="col-sm-8">
                    <input name="departureInfo" th:field="*{departureInfo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">返回时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="returnTime" th:value="${#dates.format(healthUserInfo.returnTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">返回方式：</label>
                <div class="col-sm-8">
                    <input name="returnMode" th:field="*{returnMode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">返回驻地车次航班：</label>
                <div class="col-sm-8">
                    <input name="returnInfo" th:field="*{returnInfo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否在疫区停留：</label>
                <div class="col-sm-8">
                	<div class="radio-box">
                        <input type="radio" name="epidemicAreaFlag" value = "0" th:field="*{epidemicAreaFlag}" required>
                        <label th:for="epidemicAreaFlag" th:text="是"></label>
                    </div>
                     <div class="radio-box">
                        <input type="radio" name="epidemicAreaFlag" value="1" th:field="*{epidemicAreaFlag}"  required>
                        <label th:for="epidemicAreaFlag" th:text="否"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否疑患同乘：</label>
                <div class="col-sm-8">
                	<div class="radio-box">
                        <input type="radio" name="epidemicPersonFlag" value = "0" th:field="*{epidemicPersonFlag}" required>
                        <label th:for="epidemicPersonFlag" th:text="是"></label>
                    </div>
                     <div class="radio-box">
                        <input type="radio" name="epidemicPersonFlag" value="1" th:field="*{epidemicPersonFlag}"  required>
                        <label th:for="epidemicPersonFlag" th:text="否"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">目前地址：</label>
                <div class="col-sm-8">
                    <textarea name="currentLocation" class="form-control">[[*{currentLocation}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">目前健康状态：</label>
                <div class="col-sm-8">
                  <div class="radio-box">
                        <input type="radio" name="healthStatus" value = "0" th:field="*{healthStatus}" required>
                        <label th:for="healthStatus" th:text="健康"></label>
                    </div>
                     <div class="radio-box">
                        <input type="radio" name="healthStatus" value="1" th:field="*{healthStatus}" required>
                        <label th:for="healthStatus" th:text="异常"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否到岗办公：</label>
                <div class="col-sm-8">
                   <div class="radio-box">
                        <input type="radio" name="workStatus" value = "0" th:field="*{workStatus}" required>
                        <label th:for="workStatus" th:text="是"></label>
                    </div>
                     <div class="radio-box">
                        <input type="radio" name="workStatus" value="1" th:field="*{workStatus}"  required>
                        <label th:for="workStatus" th:text="否"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">到岗方式：</label>
                <div class="col-sm-8">
                    <input name="workMode" th:field="*{workMode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">填报日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="lastReportDate" th:value="${#dates.format(healthUserInfo.lastReportDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">组织编码：</label>
                <div class="col-sm-8">
                    <input name="deptCode" th:field="*{deptCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">组织名称：</label>
                <div class="col-sm-8">
                    <input name="deptName" th:field="*{deptName}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "healthinfo/healthuserinfo";
        $("#form-healthuserinfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-healthuserinfo-edit').serialize());
            }
        }

        $("input[name='departureTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='returnTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='lastReportDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>